<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let animal = {
        eats: true,
      };
      let rabbit = {
        jumps: true,
        age: 20,
        gender: "boy",
        __proto__: animal, //隐藏
      };

      console.log(Object.keys(rabbit));
      console.log(Object.values(rabbit));
      console.log(Object.entries(rabbit));
    </script>
  </body>
</html>
